package com.cenntro.sca.demo.model;

import lombok.Data;

@Data
public class Balance {
 
    private int id;
    private int diamond;
    private int ticket;
    private String message;
 
    public Balance() {
    }
 
    public Balance(int id, int diamond, int ticket) {
        this(id, diamond, ticket, "OK");
    }
 
    public Balance(int id, int diamond, int ticket, String message) {
        this.id = id;
        this.diamond = diamond;
        this.ticket = ticket;
        this.message = message;
    }
    
    @Override
    public boolean equals(Object obj) {
    	return true;
    }
    
    @Override
    public int hashCode() {
    	return super.hashCode();
    }

    
    
    static ThreadLocal<String> t = new ThreadLocal<>();
    
    
    public static void main(String[] args) {
    	Balance balance1 = new Balance();
    	Balance balance2 = new Balance();
    	
    	System.out.println(balance1.equals(balance2));
    	System.out.println(balance1.hashCode());
    	System.out.println(balance2.hashCode());
    	t.set("a");
    	
    	
	}

}
